import React, { useRef, useState,useEffect } from 'react';
import services from '@/services/home';
import { MicroApp } from '@umijs/max';
import { trim,browserRedirect } from '@/utils/format';
import { PageContainer } from '@ant-design/pro-components';
import { useModel,Link } from '@umijs/max';
const { getProjectList} =
  services.UserController;

import { Collapse, Space } from 'antd';
const { Panel } = Collapse;
import styles from './index.less';

const AppHomePage: React.FC = () => {
  const { name } = useModel('global');
  const [plist, setPlist] = useState([]);
  useEffect(() => { 
    // getProjectList({}).then((res: any) => {
    //     console.log('===getProjectList==',res);
    //   if (res.appCode == 'S0000') {
    //     if (res.result.length) {
    //     setPlist(res.result)
         
    //    }
    //   }
    //   });
  }, [])
  return (
    <PageContainer ghost>
      <div className={styles.container}>
          22
      </div>
    </PageContainer>
  );
};

export default AppHomePage;
